<template>
  <el-row class="tac">
    <el-col :span="24">
      <h5 class="mb-2">Custom colors</h5>
      <el-menu active-text-color="#ffd04b" background-color="#545c64" class="el-menu-vertical-demo" default-active="1"
        text-color="#fff" @open="handleOpen" @close="handleClose">
        <el-menu-item v-for="item in list" :index="item.index">
          <el-icon><icon-menu /></el-icon>
          <span>{{ item.name }}</span>
        </el-menu-item>
      </el-menu>
    </el-col>
  </el-row>
</template>

<script setup lang="ts" name="Aside">
import {
  Menu as IconMenu,
} from '@element-plus/icons-vue'
const handleOpen = (key: string, keyPath: string[]) => {
  console.log(key, keyPath)
}
const handleClose = (key: string, keyPath: string[]) => {
  console.log(key, keyPath)
}
const list = [
  {
    name:'001',
    index:'1',
  },
  {
    name:'002',
    index:'2',
  },
  {
    name:'003',
    index:'3',
  },
]
</script>

<style lang="less" scoped></style>
